﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ProcessBase.Models
{
    public class CopyFromBase<T>
    {
        public void CopyFrom(T other)
        {
            Type type = this.GetType();
            var props = type.GetProperties();
            foreach (var prop in props)
            {
                if (prop.Name != "ID")
                {
                    prop.SetValue(this, prop.GetValue(other));
                }
            }
        }
    }
}
